<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="map" uri="/map" %>  
<%
	String basepath = request.getContextPath();
%>

<script type="text/javascript">

$(function(){
	
	var config = ${map:json(config)};
	
	loader.load(basepath+"/"+config["module.namespace"]+"/"+"stamp.js",function(){
		
		var module = new stamp();
		
		stamp.modNo = '${module.MODULE_NO}';
		
		app.module=module;
		
		app.module.init(config);

	});
	
});

</script>
<div class="core-panel" fit="false" title="${module.MODULE_NAME}" style="padding:10px;">
	<form id="itemForm" class="core-form" col="6" type="item">
		<input type="hidden" id="ORGAN_ID" name="${config['module.idCol']}" value="${organInfo.ORGAN_ID }"/> 
		<table>
			<tr>
			  <td>机构编号：</td>
			  <td>${organInfo.ORGAN_NO }</td>
			  <td>机构名称：</td>
			  <td>${organInfo.ORGAN_NAME }</td>
			</tr>
			<tr>
			  <td>机构类型：</td>
			  <td>${organInfo.ORGAN_TYPE_MC }</td>
			  <td>机构负责人：</td>
			  <td>${organInfo.ORGAN_MANAGER }</td>
			</tr>
			<tr>
			  <td>联系电话：</td>
			  <td>${organInfo.ORGAN_MANAGER_PHONE }</td>
			  <td >联系邮箱：</td>
			  <td>${organInfo.ORGAN_MANAGER_EMAIL }</td>
			</tr>
			<tr>
			  <td>机构简介：</td>
			  <td colspan="2">${organInfo.ORGAN_REMARK }</td>
			  <td>
		  		<c:if test="${organInfo.ORGAN_STAMP == null}">
		  			<div style="text-align:center;"><img src="<%=request.getContextPath() %>/resources/styles/default/images/index/noStamp.jpg" width="144px" height="138px"></div>
		  		</c:if>
		  		<c:if test="${organInfo.ORGAN_STAMP != null}">
		  			<div style="text-align:center;"><img src="<%=basepath %>/${config['module.namespace']}/getImage?ORGAN_ID=${organInfo.ORGAN_ID }&random=<%=Math.random()%>&data_type=json" width="144px" height="138px"></div>
		  		</c:if>
			  	<div >
			  		<input style="width:150px;" type="hidden" name="ORGAN_STAMP_PASSWORD" value="${organInfo.ORGAN_STAMP_PASSWORD }">
			  		<div style="float:left;"><a href="javascript:app.module.uploadStamp();">${organInfo.ORGAN_STAMP == null ? "【上传公章】" : "【更换公章】" }</a></div>
			  		<div style="float:left;"><a href="javascript:app.module.uploadStampPassWord(${organInfo.ORGAN_STAMP_PASSWORD == null ? "true" : "false" });">${organInfo.ORGAN_STAMP_PASSWORD == null ? "【设置密码】" : "【更改密码】" }</a></div>
			  	</div>
			  	
			  </td>
			</tr>
		</table>
	</form>
</div>

<div class="clear"></div>